package com.ruoyi.StarStudio.Domain;

import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Device {

    @Excel(name = "设备ID",type = Excel.Type.EXPORT)
    private Integer device_id; //设备id

    @Excel(name = "设备名称")
    private String device_name; //设备名称

    @Excel(name = "设备序列号")
    private String device_series_number; //设备序列号

    @Excel(name = "设备所属地块")
    private String device_location; //设备位置（所属园区）

    @Excel(name = "设备状态")
    private String device_status; //设备状态

    @Excel(name = "最近一次上传数据")
    private String device_data; //设备数据（最近一次上传的数据）

    @Excel(name = "更新时间", type = Excel.Type.EXPORT)
    private Timestamp device_updateTime; //更新时间

    private int zone_id;  //地块id

    /** 请求参数 */
    private Map<String, Object> params;

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

}
